ADP\BaseVersion\Includes\Core\Rule\SingleItemRule B

Total Complexity 92
Dependencies 9
Dependents 17
Total lines 763
Lines of code 291
Logical lines of code 126
Comment lines 269
Methods 63
Properties 27

Methods 63

Method Rating Maintainability Complexity Lines of code
findPossibleMaxDiscountsForProducts()
A
51 12 28
__clone()
S
57 4 19
setRoleDiscounts()
S
67 3 8
setItemGiftStrategy()
S
64 2 13
setAutoAddStrategy()
S
64 2 13
__construct()
S
55 1 19
installProductAdjustmentHandler()
S
74 2 5
hasProductRangeAdjustment()
S
79 2 3
setItemGiftLimit()
S
78 2 3
setFilters()
S
71 2 6
addFilter()
S
74 2 5
hasConditionMessage()
S
79 2 3
setApplyFirstTo()
S
66 2 10
hasProductAdjustment()
S
79 2 3
installProductRangeAdjustmentHandler()
S
74 2 5
setAutoAddLimit()
S
78 2 3
installConditionMessageHandler()
S
74 2 5
buildProcessor()
S
79 1 3
getAutoAddRemoveDisable()
S
82 1 3
setReplaceAutoAddsCode()
S
81 1 3
setAutoAddRemoveDisable()
S
80 1 3
getAutoAddShowAsRecommended()
S
82 1 3
setAutoAddShowAsRecommended()
S
80 1 3
getRoleDiscounts()
S
82 1 3
setSortableBlocksPriority()
S
81 1 3
getSortableApplyMode()
S
82 1 3
setSortableApplyMode()
S
81 1 3
getSortableBlocksPriority()
S
82 1 3
setReplaceAutoAdds()
S
80 1 3
isDontApplyBulkIfRolesMatched()
S
82 1 3
setDontApplyBulkIfRolesMatched()
S
81 1 3
setItemsCountLimit()
S
80 1 3
getItemsCountLimit()
S
82 1 3
isItemsCountLimitExists()
S
80 1 3
getApplyFirstTo()
S
82 1 3
setMaxAmountForGifts()
S
81 1 3
getMaxAmountForGifts()
S
82 1 3
getReplaceAutoAddsCode()
S
82 1 3
getAutoAddStrategy()
S
82 1 3
isReplaceAutoAdds()
S
82 1 3
getItemGiftLimit()
S
82 1 3
getProductAdjustmentHandler()
S
82 1 3
getProductRangeAdjustmentHandler()
S
82 1 3
getConditionMessageHandler()
S
82 1 3
setItemGifts()
S
77 1 4
getItemGiftsCollection()
S
82 1 3
setItemGiftsUseProductFromFilter()
S
81 1 3
isItemGiftsUseProductFromFilter()
S
82 1 3
getFilters()
S
82 1 3
getItemGiftStrategy()
S
82 1 3
setItemGiftSubtotalDivider()
S
80 1 3
getAutoAddSubtotalDivider()
S
82 1 3
getItemGiftSubtotalDivider()
S
82 1 3
isReplaceItemGifts()
S
82 1 3
setReplaceItemGifts()
S
80 1 3
getReplaceItemGiftsCode()
S
82 1 3
setReplaceItemGiftsCode()
S
81 1 3
setAutoAdds()
S
77 1 4
getAutoAddsCollection()
S
82 1 3
isAutoAddUseProductFromFilter()
S
82 1 3
getAutoAddLimit()
S
82 1 3
setAutoAddSubtotalDivider()
S
80 1 3
setAutoAddUseProductFromFilter()
S
81 1 3